/*
 * ObjectInfo.java
 *
 * Created on December 13, 2007, 10:05 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package editor;

import java.awt.image.BufferedImage;
import java.sql.Date;

/**
 *
 * @author demo
 */
public class ObjectInfo {
    
    public enum Types {ROAD, CAR, WHIT, UNSPEC, INJ};
    private Types type;

    // general
    public String description;
    
    // ROAD/Accident
    public String roadNum;
    public String city;
    public Date date;
    
    
    // CAR
    public String carId;
    public String driver;
    public String brand;
    
    // UNSPEC
    public String name;
    public String id;

    public int surv;

    //WHIT
    BufferedImage image;
    BufferedImage imageThumb;
    public String imageName;
    public String imageD;
    
    private static int ids = 0;
    //
    
    /** Creates a new instance of ObjectInfo */
    public ObjectInfo() {
        type = Types.UNSPEC;
        id = String.valueOf(ids++);
        image = null;
    
    }

    public ObjectInfo(Types type) {
        this.type = type;
        id = String.valueOf(ids++);
        image = null;
    }
    
    public Types getType() {
        return type;
    }
    
}
